package com.tanhua.server.exception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;


/**
 * 自定义异常处理器
 */
@Data
public class BussinessException extends RuntimeException{
    private ErrorResult errorResult;
    public BussinessException(ErrorResult errorResult){
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }
}
